package com.tbvtc.agriculturalcreditchainserver2025.pojo.pear;

import lombok.Data;
import java.util.List;

@Data
public class MainPestPear {
    private String health_status;
    private Boolean is_healthy;
    private Prediction main_prediction;
    private String timestamp;

    @Data
    public static class Prediction {
        private String class_name_en;
        private String class_name_zh;
        private Double confidence;
        private String confidence_percent;
        private DiseaseInfo disease_info;
        private Integer rank;
    }

    @Data
    public static class DiseaseInfo {
        private String description;
        private String prevention;
        private String severity;
        private String treatment;
        private String type;
    }

}